n=eval(input())
if n==1:
    print("Mon")
elif n==2:
    print("Tue")
elif n==3:
    print("Wed")
elif n==4:
    print("Thu")
elif n==5:
    print("Fri")
elif n==6:
    print("Sat")
else:
    print("Sun")